var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.curNodeEventEnd(true);
            qm.setInGameDirectionMode(true, false, true);
            qm.fieldEffect_PlayFieldSound("Sound/SoundEff.img/blackHeaven/lever", 100);
            qm.npc_SetSpecialAction("oid=285775330", "left", -1, 1);
            qm.fieldEffect_PlayFieldSound("Sound/SoundEff.img/blackHeaven/metaldown", 100);
            qm.npcMove(1540747, 0, 353, 3000);
            qm.addPopupSay(1540452, 2000, "……这些炸弹的量真是惊人. ", "", 0);
            qm.addPopupSay(1540451, 2000, "这肯定不是普通的炸弹. ", "", 0);
            qm.inGameDirectionEvent_AskAnswerTime(3000)
        } else {
            if (status === a++) {
                qm.onSetBackEffect("down", 1, 1, 0, 0);
                qm.地图特效_开关落脚点([73], [0]);
                qm.forceCompleteQuest(33247);
                qm.setInGameDirectionMode(false, true, false);
                qm.dispose();
                qm.npc_LeaveField("oid=285775330")
            }
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/33233.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceStartQuest();
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.curNodeEventEnd(true);
            qm.setInGameDirectionMode(true, false, true);
            qm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection();
            qm.sendNormalTalk_Bottom("哼……你找到管道了吗？\r\n你在磨蹭什么，快走。", 37, 1540490, false, true)
        } else {
            if (status === a++) {
                qm.updateInfoQuest(33234, "start=0;done=1");
                qm.forceCompleteQuest(33234);
                qm.gainItem(4034271, -3);
                qm.dispose();
                qm.warp(350053250, 0, true);
                qm.npc_LeaveField("oid=284798173");
                qm.npc_LeaveField("oid=284798173");
                qm.setInGameDirectionMode(false, true, false);
                qm.dispose()
            }
        }
    }
};